package com.bs.web.controller;

import com.bs.web.consumer.entity.Msg;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Nominal on 2018/3/6 0006.
 * 微博：@Mr丶Li_Anonym
 */
@Controller
public class HomeController {
    @RequestMapping("/index")
    public String index(Model model) {
        Msg msg = new Msg("测试标题", "测试内容", "额外信息，只对管理员显示");
        model.addAttribute("msg", msg);
        return "index";
    }
    @RequestMapping("/login")
    public String login(){
        return "login";
    }
}
